package pub.guoxin.oops.model;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.mongodb.morphia.annotations.Entity;

/**
 * 万事万物皆对象
 * Created by guoxin on 17-10-17.
 */
@Data
@Entity
@ApiModel
public abstract class BaseEntity<T> extends BaseEntity0<T> {

    @ApiModelProperty(hidden = true)
    protected Boolean used;

    public void init() {
        this.used = true;
        super.init();
    }

}
